Shape Memory Effect In A Spring